/*
 * @Description: 搜索栏配置
 * @Author: HuiSir<https://gitee.com/huisir001>
 * @Date: 2021-11-05 11:41:30
 * @LastEditTime: 2025-08-15 15:44:25
 */
import { defineFormOptions } from "@/components/TablePage/predefined";
import { SexOpt } from "@/helpers/selection";

export default defineFormOptions(() => [
  {
    component: "input",
    key: "accountNo",
    props: {
      placeholder: "请输入账号",
    },
  },
  {
    component: "input",
    key: "name",
    props: {
      placeholder: "请输入姓名或昵称",
    },
  },
  {
    component: "input",
    key: "phone",
    props: {
      placeholder: "请输入手机号码",
    },
  },
  {
    component: "input",
    key: "email",
    props: {
      placeholder: "请输入邮箱",
    },
  },
  {
    component: "input",
    key: "id",
    props: {
      placeholder: "请输入管理员ID",
    },
  },
  {
    component: "select",
    key: "sex",
    props: {
      placeholder: "选择管理员性别",
    },
    options: SexOpt.options,
  },
  {
    component: "select",
    key: "status",
    props: {
      placeholder: "选择管理员状态",
    },
    options: [
      {
        label: "全部",
        value: "",
      },
      {
        label: "冻结",
        value: "0",
      },
      {
        label: "正常",
        value: "1",
      },
    ],
  },
  {
    key: "deptId",
    slot: "searchDeptId",
  },
  {
    component: "date-picker",
    key: "dateRange",
    props: {
      type: "daterange",
      rangeSeparator: "-",
      startPlaceholder: "开始时间",
      endPlaceholder: "结束时间",
    },
  },
]);
